﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000D0 RID: 208
	internal class Ext8 : IExtDecoder
	{
		// Token: 0x06000315 RID: 789 RVA: 0x0000C073 File Offset: 0x0000A473
		private Ext8()
		{
		}

		// Token: 0x06000316 RID: 790 RVA: 0x0000C07C File Offset: 0x0000A47C
		public ExtensionResult Read(byte[] bytes, int offset, out int readSize)
		{
			byte b = bytes[offset + 1];
			sbyte typeCode = (sbyte)bytes[offset + 2];
			byte[] array = new byte[(int)b];
			readSize = (int)(b + 3);
			Buffer.BlockCopy(bytes, offset + 3, array, 0, (int)b);
			return new ExtensionResult(typeCode, array);
		}

		// Token: 0x040000EC RID: 236
		internal static readonly IExtDecoder Instance = new Ext8();
	}
}
